package org.yefei.homeworkday24;

import java.io.FileInputStream;
import java.io.IOException;
import java.io.InputStream;

public class One {

	public static void main(String[] args) {
		// 1：输入一个文件名，把其内容用byte的方式输出，用单字节的方式
		InputStream i = null;
		try {
			i = new FileInputStream("F:\\叶飞io测试\\English.txt");
			int r = 0;
			while ((r = i.read()) > -1) {
				System.out.println((char) r);
			}
		} catch (Exception e) {
			e.printStackTrace();
		} finally {
			if (i != null)
				try {
					i.close();
				} catch (IOException e) {
					e.printStackTrace();
				}
		}

	}

}
